package testView;
import model.FileHandler;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.*;

/**
 * @author Beth Katz
 *
 * Tests the FileHandler class. Detects expected exceptions.
 */
public class FileHandlerTest {

	/*
	 * try to open a file with an empty name
	 * should throw an exception
	 */
	@Test(expected=IOException.class)
	public void emptyStringFileName( ) throws IOException {
		//char[ ][ ] m = FileHandler.matrixFromFileName("");
		FileHandler.matrixFromFileName("");
		assertTrue("Empty string should have been illegal file name", false);
	}

}
